/**
 * Project Name:YCApiServer-dao
 * File Name:LyricsFovCacheMapper.java
 * Package Name:com.yc.music.mapper.cache
 * Date:2016年5月5日下午5:51:12
 * Copyright (c) 2016 
 *
 */
package com.yc.music.mapper.dao;

import org.apache.ibatis.annotations.Param;

import com.yc.music.model.activity.MusicActivityFlow;

/**
 * 
 * ClassName: MusicActivityFlowMapper <br/>
 * Function: 活动流水. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2016年8月15日 上午11:17:45 <br/>
 *
 * @author qinhaiguan
 * @version
 */
public interface MusicActivityFlowMapper {

	public MusicActivityFlow getActivityFlowById(@Param("activityid") Integer activityid,@Param("userid") Long userid);
	
	public void saveActivityFlow(MusicActivityFlow musicActivityFlow) throws Exception;
	
	public void updateActivityFlow(MusicActivityFlow musicActivityFlow)throws Exception;
	
	
	/**
	 * 
	 * getWorkCount:获取参赛人数. <br/> 
	 * @param activityid  活动id
	 * @return
	 * @since JDK 1.7
	 */
	public int getUserCount(@Param("activityid") Integer activityid);
	
	/**
	 * 
	 * getWorkCount:获取参赛作品数量. <br/> 
	 * @param activityid  活动id
	 * @return
	 * @since JDK 1.7
	 */
	public int getWorkCount(@Param("activityid") Integer activityid);
}


